package com.mhz.mvc.fc;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
/**
 * requst包装 读取值栈属性
 * @author mhz
 *
 */
public class MVCRequestWrapper extends HttpServletRequestWrapper {

	public MVCRequestWrapper(HttpServletRequest request) {
		super(request);
	}

	@Override
	public Object getAttribute(String name) {
		Object obj = super.getAttribute(name);
		if (obj != null) {
			return obj;
		}
		ValueStack vs = (ValueStack) super.getAttribute("vs");
		return vs.findValue(name);
	}

}
